APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.jmx.remote.internal

public abstract Class ClientCommunicatorAdmin

extends Object
Class Inheritance
Imports
java.io.IOException, .InterruptedIOException, com.sun.jmx.remote.util.ClassLogger, .EnvHelp

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final ClientCommunicatorAdmin.Checker
private static final int
private static final int
private final int[]
private static final ClassLogger
private long
private static final int
private int
private static final int
private static volatile long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract void
checkConnection()

Called by this class to check a client connection.

protected abstract void
doStart()

Tells a client to re-start again.

protected abstract void
doStop()

Tells a client to stop because failing to call checkConnection.

public void
gotIOException(IOException ioe)

Called by a client to inform of getting an IOException.

private void
public void
terminate()

Terminates this object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

checkerback to summary
private final ClientCommunicatorAdmin.Checker checker
CONNECTEDback to summary
private static final int CONNECTED
FAILEDback to summary
private static final int FAILED
lockback to summary
private final int[] lock
loggerback to summary
private static final ClassLogger logger
periodback to summary
private long period
RE_CONNECTINGback to summary
private static final int RE_CONNECTING
stateback to summary
private int state
TERMINATEDback to summary
private static final int TERMINATED
threadNoback to summary
private static volatile long threadNo

Constructor Detail

ClientCommunicatorAdminback to summary
public ClientCommunicatorAdmin(long period)

Method Detail

checkConnectionback to summary
protected abstract void checkConnection() throws IOException

Called by this class to check a client connection.

doStartback to summary
protected abstract void doStart() throws IOException

Tells a client to re-start again.

doStopback to summary
protected abstract void doStop()

Tells a client to stop because failing to call checkConnection.

gotIOExceptionback to summary
public void gotIOException(IOException ioe) throws IOException

Called by a client to inform of getting an IOException.

restartback to summary
private void restart(IOException ioe) throws IOException
terminateback to summary
public void terminate()

Terminates this object.

com.sun.jmx.remote.internal back to summary

private Class ClientCommunicatorAdmin.Checker

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private Thread

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

private void
stop()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

myThreadback to summary
private Thread myThread

Constructor Detail

Checkerback to summary
private Checker()

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

stopback to summary
private void stop()