
public class JGroupsTransport extends AbstractRemoteTransport<org.jgroups.Address> implements org.jgroups.MembershipListener
executorService, nodes| Constructor and Description |
|---|
JGroupsTransport()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWorkManager(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
org.jgroups.Address address)
Delegator
|
void |
block() |
void |
executeDoWork(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
ClassBundle classBundle,
byte[] b)
Execute doWork
|
void |
executeScheduleWork(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
ClassBundle classBundle,
byte[] b)
Execute scheduleWork
|
long |
executeStartWork(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
ClassBundle classBundle,
byte[] b)
Execute startWork
|
org.jgroups.JChannel |
getChannel()
Get the channel.
|
String |
getClusterName()
Get the clustername.
|
org.jgroups.Address |
getOwnAddress()
Get the physical address
|
long |
getTimeout()
Get the timeout
|
Set<org.jboss.jca.core.spi.workmanager.Address> |
getWorkManagers()
Get WorkManagers
|
void |
initialize()
Initialize the transport
|
boolean |
isInitialized()
Is the transport initialized
|
void |
join(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
org.jgroups.Address address)
Delegator
|
void |
leave(org.jgroups.Address address)
Delegator
|
Serializable |
sendMessage(org.jgroups.Address destAddress,
ProtocolMessages.Request request,
Serializable... parameters)
send a messagge using specific protocol.
|
void |
setChannel(org.jgroups.JChannel channel)
Set the channel.
|
void |
setClusterName(String clustername)
Set the clustername.
|
void |
setTimeout(long v)
Set the timeout
|
void |
shutdown()
Shutdown the transport
|
void |
startup()
Startup the transport
|
void |
suspect(org.jgroups.Address address) |
String |
toString() |
void |
unblock() |
void |
viewAccepted(org.jgroups.View view) |
clearDistributedStatistics, deltaDoWorkAccepted, deltaDoWorkRejected, deltaScheduleWorkAccepted, deltaScheduleWorkRejected, deltaStartWorkAccepted, deltaStartWorkRejected, deltaWorkFailed, deltaWorkSuccessful, doWork, getAddresses, getDistributedStatistics, getExecutorService, getId, getLongRunningFree, getShortRunningFree, localClearDistributedStatistics, localDeltaDoWorkAccepted, localDeltaDoWorkRejected, localDeltaScheduleWorkAccepted, localDeltaScheduleWorkRejected, localDeltaStartWorkAccepted, localDeltaStartWorkRejected, localDeltaWorkFailed, localDeltaWorkSuccessful, localDoWork, localGetDistributedStatistics, localGetLongRunningFree, localGetShortRunningFree, localPing, localScheduleWork, localStartWork, localUpdateLongRunningFree, localUpdateShortRunningFree, localWorkManagerAdd, localWorkManagerRemove, ping, register, scheduleWork, setExecutorService, setId, startWork, unregister, updateLongRunningFree, updateShortRunningFreepublic void join(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
org.jgroups.Address address)
join in class AbstractRemoteTransport<org.jgroups.Address>logicalAddress - The logical addressaddress - The addresspublic void leave(org.jgroups.Address address)
leave in class AbstractRemoteTransport<org.jgroups.Address>address - The addresspublic Set<org.jboss.jca.core.spi.workmanager.Address> getWorkManagers()
public void addWorkManager(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
org.jgroups.Address address)
logicalAddress - The logical addressaddress - The addresspublic void executeDoWork(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
ClassBundle classBundle,
byte[] b)
throws javax.resource.spi.work.WorkException
logicalAddress - The logical addressclassBundle - The class bundleb - The bytesjavax.resource.spi.work.WorkException - in case of errorpublic long executeStartWork(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
ClassBundle classBundle,
byte[] b)
throws javax.resource.spi.work.WorkException
logicalAddress - The logical addressclassBundle - The class bundleb - The bytesjavax.resource.spi.work.WorkException - in case of errorpublic void executeScheduleWork(org.jboss.jca.core.spi.workmanager.Address logicalAddress,
ClassBundle classBundle,
byte[] b)
throws javax.resource.spi.work.WorkException
logicalAddress - The logical addressclassBundle - The class bundleb - The bytesjavax.resource.spi.work.WorkException - in case of errorpublic void startup()
throws Throwable
startup in interface org.jboss.jca.core.spi.workmanager.transport.TransportThrowable - In case of an errorpublic boolean isInitialized()
isInitialized in interface org.jboss.jca.core.spi.workmanager.transport.Transportpublic void initialize()
throws Throwable
initialize in interface org.jboss.jca.core.spi.workmanager.transport.TransportThrowable - In case of an errorpublic void shutdown()
throws Throwable
shutdown in interface org.jboss.jca.core.spi.workmanager.transport.TransportThrowable - In case of an errorpublic Serializable sendMessage(org.jgroups.Address destAddress, ProtocolMessages.Request request, Serializable... parameters) throws javax.resource.spi.work.WorkException
AbstractRemoteTransportsendMessage in class AbstractRemoteTransport<org.jgroups.Address>destAddress - the physical addressrequest - the requestparameters - the parametersjavax.resource.spi.work.WorkException - in case of problem with the workpublic org.jgroups.Address getOwnAddress()
getOwnAddress in class AbstractRemoteTransport<org.jgroups.Address>public org.jgroups.JChannel getChannel()
public void setChannel(org.jgroups.JChannel channel)
channel - The channel to set.public String getClusterName()
public void setClusterName(String clustername)
clustername - The clustername to set.public long getTimeout()
public void setTimeout(long v)
v - The valuepublic void viewAccepted(org.jgroups.View view)
viewAccepted in interface org.jgroups.MembershipListenerpublic void block()
block in interface org.jgroups.MembershipListenerpublic void suspect(org.jgroups.Address address)
suspect in interface org.jgroups.MembershipListenerpublic void unblock()
unblock in interface org.jgroups.MembershipListenerCopyright © 2013 IronJacamar (http://www.ironjacamar.org)