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 String |
STATE_ACTIVE |
static String |
STATE_CLOSED |
static 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.
|
Object |
executeCommand(byte[] command)
INTERNAL:
Publish the remote command.
|
Object |
executeCommand(Command command)
INTERNAL:
Publish the remote command.
|
String |
getState()
INTERNAL:
State of the connection.
|
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.
|
String |
toString()
INTERNAL:
|
getServiceId, setServiceId
public static final String STATE_ACTIVE
public static final String STATE_CLOSING
public static final String STATE_CLOSED
public BroadcastRemoteConnection(RemoteCommandManager rcm)
public Object executeCommand(Command command) throws CommunicationException
executeCommand
in class RemoteConnection
CommunicationException
public Object executeCommand(byte[] command) throws CommunicationException
executeCommand
in class RemoteConnection
CommunicationException
public void close()
close
in class RemoteConnection
public String getState()
public boolean isActive()
public boolean isClosing()
public boolean isClosed()
public String getTopicName()
public String toString()
toString
in class RemoteConnection
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference