public abstract class BroadcastRemoteConnection extends RemoteConnection
Purpose: Base class extending RemoteConnection for broadcasting RCM protocols: JMS and Oc4jJGroups.
Description: Defines lifecycle states and most of the methods, as well as exception processing and info logging.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STATE_ACTIVE |
static java.lang.String |
STATE_CLOSED |
static java.lang.String |
STATE_CLOSING |
Constructor and Description |
---|
BroadcastRemoteConnection(RemoteCommandManager rcm) |
Modifier and Type | Method and Description |
---|---|
void |
close()
INTERNAL:
This method is called when connection in no longer used and it's resources should be freed.
|
java.lang.Object |
executeCommand(byte[] command)
INTERNAL:
Publish the remote command.
|
java.lang.Object |
executeCommand(Command command)
INTERNAL:
Publish the remote command.
|
java.lang.String |
getState()
INTERNAL:
State of the connection.
|
java.lang.String |
getTopicName()
INTERNAL:
|
boolean |
isActive()
INTERNAL:
Connection is open for business.
|
boolean |
isClosed()
INTERNAL:
Connection is closed - all resources were freed.
|
boolean |
isClosing()
INTERNAL:
close method has been called.
|
java.lang.String |
toString()
INTERNAL:
|
getServiceId, setServiceId
public static final java.lang.String STATE_ACTIVE
public static final java.lang.String STATE_CLOSING
public static final java.lang.String STATE_CLOSED
public BroadcastRemoteConnection(RemoteCommandManager rcm)
public java.lang.Object executeCommand(Command command) throws CommunicationException
executeCommand
in class RemoteConnection
CommunicationException
public java.lang.Object executeCommand(byte[] command) throws CommunicationException
executeCommand
in class RemoteConnection
CommunicationException
public void close()
close
in class RemoteConnection
public java.lang.String getState()
public boolean isActive()
public boolean isClosing()
public boolean isClosed()
public java.lang.String getTopicName()
public java.lang.String toString()
toString
in class RemoteConnection
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference