Package org.jppf.client.balancer
Class AbstractChannelWrapperRemote
java.lang.Object
org.jppf.client.balancer.ChannelWrapper
org.jppf.client.balancer.AbstractChannelWrapperRemote
- All Implemented Interfaces:
AutoCloseable,ClientConnectionStatusHandler,org.jppf.execute.ExecutorChannel<ClientTaskBundle>
- Direct Known Subclasses:
ChannelWrapperRemoteAsync
public abstract class AbstractChannelWrapperRemote
extends ChannelWrapper
implements ClientConnectionStatusHandler
Context associated with a remote channel serving state and tasks submission.
- Author:
- Martin JANDA, Laurent Cohen
-
Field Summary
FieldsFields inherited from class org.jppf.client.balancer.ChannelWrapper
oldStatus -
Constructor Summary
ConstructorsConstructorDescriptionDefault initializer for remote channel wrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a connection status listener to this connection's list of listeners.booleancancel(ClientTaskBundle bundle) Cancel the currently executing job, if any.Get the wrapped channel.Get the status of this connection.getUuid()voidInit the channel id for load-balancer persistence.booleanisLocal()voidRemove a connection status listener from this connection's list of listeners.voidsetStatus(JPPFClientConnectionStatus status) Set the status of this connection.voidsetSystemInformation(org.jppf.management.JPPFSystemInformation systemInfo) Set the system information.toString()Methods inherited from class org.jppf.client.balancer.ChannelWrapper
addExecutionStatusListener, checkBundler, close, fireExecutionStatusChanged, getBundler, getCurrentNbJobs, getExecutionStatus, getManagementInfo, getMonitor, getOldStatus, getPriority, getSystemInformation, isActive, isResetting, removeExecutionStatusListener, setManagementInfo, setOldStatus, setResettingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jppf.execute.ExecutorChannel
getMaxJobs, isAsynchronous, submit
-
Field Details
-
uuid
Unique identifier of the client.
-
-
Constructor Details
-
AbstractChannelWrapperRemote
Default initializer for remote channel wrapper.- Parameters:
channel- to the driver to use.
-
-
Method Details
-
setSystemInformation
public void setSystemInformation(org.jppf.management.JPPFSystemInformation systemInfo) Description copied from class:ChannelWrapperSet the system information.- Overrides:
setSystemInformationin classChannelWrapper- Parameters:
systemInfo- aJPPFSystemInformationinstance.
-
initChannelID
public void initChannelID()Description copied from class:ChannelWrapperInit the channel id for load-balancer persistence.- Overrides:
initChannelIDin classChannelWrapper
-
getUuid
- Specified by:
getUuidin interfaceorg.jppf.execute.ExecutorChannel<ClientTaskBundle>
-
getConnectionUuid
- Specified by:
getConnectionUuidin interfaceorg.jppf.execute.ExecutorChannel<ClientTaskBundle>
-
getStatus
Description copied from class:ChannelWrapperGet the status of this connection.- Specified by:
getStatusin interfaceClientConnectionStatusHandler- Specified by:
getStatusin classChannelWrapper- Returns:
- a
JPPFClientConnectionStatusenumerated value.
-
setStatus
Description copied from interface:ClientConnectionStatusHandlerSet the status of this connection.- Specified by:
setStatusin interfaceClientConnectionStatusHandler- Parameters:
status- aJPPFClientConnectionStatusenumerated value.
-
getChannel
Get the wrapped channel.- Returns:
- a
AbstractJPPFClientConnectioninstance.
-
addClientConnectionStatusListener
Description copied from class:ChannelWrapperAdd a connection status listener to this connection's list of listeners.- Specified by:
addClientConnectionStatusListenerin interfaceClientConnectionStatusHandler- Specified by:
addClientConnectionStatusListenerin classChannelWrapper- Parameters:
listener- the listener to add to the list.
-
removeClientConnectionStatusListener
Description copied from class:ChannelWrapperRemove a connection status listener from this connection's list of listeners.- Specified by:
removeClientConnectionStatusListenerin interfaceClientConnectionStatusHandler- Specified by:
removeClientConnectionStatusListenerin classChannelWrapper- Parameters:
listener- the listener to remove from the list.
-
isLocal
public boolean isLocal()- Specified by:
isLocalin interfaceorg.jppf.execute.ExecutorChannel<ClientTaskBundle>
-
cancel
Description copied from class:ChannelWrapperCancel the currently executing job, if any.- Specified by:
cancelin classChannelWrapper- Parameters:
bundle- the bundle to cancel.- Returns:
trueif the job is effectively cancelled,falseotherwise.
-
toString
-