public static void main(String[] args) {
    	MethodInvocator ca = null;

        if (args.length != 4 ) {
            System.err.println("Usage: java ConsoleApp <hawkDomain> <rvService> <rvNetwork> <rvDaemon>");
            return;
        }

        if (args.length == 4) {
			try {
				ca = new MethodInvocator(args[0],args[1],args[2],args[3],"COM.TIBCO.admin.TRA");
				ca.setMethodName("getComponentInstanceStatus");
				ca.setArguments("TEC-JMS", "TEC-JMS-IN");
//				ca.setMethodName("getFileStatusForComponentFile");
//				ca.setArguments("TEC-JMS", "TEC-JMS-IN", "C:/tibco/tra/domain/LOCAL/application/logs/TEC-JMS-TEC-JMS-IN.log");
				ca.invocate();
			} catch (Exception e) {
				e.printStackTrace();
			} finally {
				System.exit(0);
			}
        }
    }
public static void main(String[] args) {
    	MethodInvocator ca = null;

        if (args.length != 4 ) {
            System.err.println("Usage: java ConsoleApp <hawkDomain> <rvService> <rvNetwork> <rvDaemon>");
            return;
        }

        if (args.length == 4) {
			try {
				ca = new MethodInvocator(args[0],args[1],args[2],args[3],"COM.TIBCO.admin.TRA");
				ca.setMethodName("getComponentInstanceStatus");
				ca.setArguments("TEC-JMS", "TEC-JMS-IN");


				ca.invocate();
			} catch (Exception e) {
				e.printStackTrace();
			} finally {
				System.exit(0);
			}
        }
    }
public static void main ( String [ ] args ) { MethodInvocator ca = null ; if ( args . length != 4 ) { System . err . println ( "Usage: java ConsoleApp <hawkDomain> <rvService> <rvNetwork> <rvDaemon>" ) ; return ; } if ( args . length == 4 ) { try { ca = new MethodInvocator ( args [ 0 ] , args [ 1 ] , args [ 2 ] , args [ 3 ] , "COM.TIBCO.admin.TRA" ) ; ca . setMethodName ( "getComponentInstanceStatus" ) ; ca . setArguments ( "TEC-JMS" , "TEC-JMS-IN" ) ; //				ca.setMethodName("getFileStatusForComponentFile"); //				ca.setArguments("TEC-JMS", "TEC-JMS-IN", "C:/tibco/tra/domain/LOCAL/application/logs/TEC-JMS-TEC-JMS-IN.log"); ca . invocate ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { System . exit ( 0 ) ; } } }
Main - Usage: java ConsoleApp <hawkDomain> <rvService> <rvNetwork> <rvDaemon>
Main - Usage : java ConsoleApp <hawkDomain > <rvService > <rvNetwork > <rvDaemon >