package test.basic; import javax.swing.*; import jasco.runtime.JascoMethod; import jasco.runtime.aspect.*; class distributed { public void domethod() {} hook test0 { private String test = "EXECUTING : "; test0(method(..args)) { execution(method) && joinpointhost(localhost); } before() { System.out.println(test+thisJoinPoint.getSignature()); } } hook test1 { private String test = "EXECUTING : "; test1(method(..args)) { execution(method) && executionhost("10.0.4.23:89"); } before() { System.out.println(test+thisJoinPoint.getSignature()); } } hook test2 { private String test = "EXECUTING : "; test2(method(..args)) { execution(method) && !executionhost("10.0.4.23"); } before() { System.out.println(test+thisJoinPoint.getSignature()); } } hook test3 { private String test = "EXECUTING : "; test3(method(..args)) { execution(method) && joinpointhost(localhost); } before() { System.out.println(test+thisJoinPoint.getSignature()); } } hook test4 { private String test = "EXECUTING : "; test4(method(..args)) { execution(method) && executionhost(joinpointhost); } before() { System.out.println(test+thisJoinPoint.getSignature()); } } }