Methods Summary |
---|
boolean | emitNotif(com.sun.cli.jmx.test.EmitterThread thread)
if ( mEmitterThread == null )
{
return( false );
}
final AttributeChangeNotification notif = new AttributeChangeNotification( this,
mNumNotifsEmitted, // use this as sequence number
System.currentTimeMillis(),
"did it again",
"NotifsEmitted",
"java.lang.long",
Long.valueOf(mNumNotifsEmitted),
Long.valueOf(mNumNotifsEmitted + 1));
++mNumNotifsEmitted;
sendNotification( notif );
System.out.println( "emitted another one" );
return( true );
|
public long | getNotifMillis()
return mNotifMillis;
|
public long | getNotifsEmitted()
return( mNumNotifsEmitted );
|
public java.lang.Object | getUnknownType()
return( new AintGonnaHaveIt() );
|
public void | resetNotifsEmitted()
mNumNotifsEmitted = 0;
|
public void | setNotifMillis(long millis)
mNotifMillis = millis;
if ( mEmitterThread != null )
{
// restart with new interval
stopNotif();
startNotif();
}
|
public synchronized void | startNotif()
stopNotif();
System.out.println( "emitting notifications once per this many ms: " + mNotifMillis );
mEmitterThread = new EmitterThread( this, mNotifMillis);
mEmitterThread.start();
|
public void | stopNotif()
if ( mEmitterThread != null )
{
EmitterThread thread = mEmitterThread;
mEmitterThread = null;
try
{
thread.join( );
}
catch( InterruptedException e )
{
}
}
|
public void | test11MixedArgs(java.lang.String a1, boolean a2, char a3, byte a4, short a5, int a6, long a7, float a8, double a9, java.math.BigInteger a10, java.math.BigDecimal a11)
// no need to do anything
|
public void | test11ObjectArgs(java.lang.String a1, java.lang.Boolean a2, java.lang.Character a3, java.lang.Byte a4, java.lang.Short a5, java.lang.Integer a6, java.lang.Long a7, java.lang.Float a8, java.lang.Double a9, java.math.BigInteger a10, java.math.BigDecimal a11)
// no need to do anything
|
public java.lang.String | testCASESENSITIVITY1()
return( "testCASESENSITIVITY1" );
|
public java.lang.String | testCaseSensitivity1()
return( "testCaseSensitivity1" );
|
public java.lang.String | testCaseSensitivity2()
return( "testCaseSensitivity2" );
|
public java.lang.Integer | testInteger(java.lang.Integer i)
return( i );
|
public java.lang.Object | testObject(java.lang.Object obj)
return( obj );
|
public java.lang.Object[] | testObjectArray(java.lang.Object[] objects)
return( objects );
|
public java.lang.String | testString(java.lang.String s)
return( s );
|
public java.net.URI | testURI(java.net.URI u)
return( u );
|
public java.net.URL | testURL(java.net.URL u)
return( u );
|
public java.lang.Object | testUnknownType()
return( new AintGonnaHaveIt() );
|
public int | test_int(int i)
return( i );
|
public java.lang.String | testcasesensitivity1()
return( "testcasesensitivity1" );
|