|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.kernel.ac.ACReceiver
public final class ACReceiver
Receives agent containers from remote AOS kernels. Thread-safe.
| Field Summary | |
|---|---|
protected AgentContainerTransfer |
act
Class containing all basic info |
protected KernelImpl |
kernel
To check if TIDs are known at all by the kernel |
protected static org.apache.commons.logging.Log |
log
|
protected java.net.ServerSocket |
shipListener
The server socket on which we listen for incoming shipments. |
protected ShipmentRendezvousTable |
shipmentTable
The table of agent container shipments. |
| Constructor Summary | |
|---|---|
ACReceiver(AgentContainerTransfer act,
java.net.InetSocketAddress socketAddress,
javax.net.ssl.SSLContext ctx,
KernelImpl kernel)
Constructor. |
|
| Method Summary | |
|---|---|
static ReplyMessage |
createShipReplyMessage(int resultCode,
int errorCode,
java.lang.String verbose_message,
TransactionID tid,
byte[] sigBytes,
java.lang.String[] secSuites)
Creates ACTP_SHIP_REPLY_MSG |
java.net.InetSocketAddress |
getContactPoint()
Returns the address of the base listener TCP/IP contact point. |
ShipmentRendezvousTable |
getRendezvousTable()
|
static void |
sendShipReplyMessage(java.net.Socket socket,
int resultCode,
int errorCode,
java.lang.String verbose_message,
TransactionID tid,
byte[] sigBytes,
java.lang.String[] secSuites)
Used for errors where client does not need to be woken up. |
void |
shutdown()
|
AOSapi.WaitACResult |
waitAgentContainer(java.util.HashMap<TransactionID,TIDRecord> tidrecs,
int blockTime)
Implements AOSapi.waitAgentContainer() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
protected final AgentContainerTransfer act
protected final java.net.ServerSocket shipListener
protected ShipmentRendezvousTable shipmentTable
protected final KernelImpl kernel
| Constructor Detail |
|---|
public ACReceiver(AgentContainerTransfer act,
java.net.InetSocketAddress socketAddress,
javax.net.ssl.SSLContext ctx,
KernelImpl kernel)
throws java.io.IOException,
java.net.SocketException,
NoKnownSecuritySuiteException
java.io.IOException
java.net.SocketException
NoKnownSecuritySuiteException| Method Detail |
|---|
public java.net.InetSocketAddress getContactPoint()
public void shutdown()
public AOSapi.WaitACResult waitAgentContainer(java.util.HashMap<TransactionID,TIDRecord> tidrecs,
int blockTime)
public static void sendShipReplyMessage(java.net.Socket socket,
int resultCode,
int errorCode,
java.lang.String verbose_message,
TransactionID tid,
byte[] sigBytes,
java.lang.String[] secSuites)
public static ReplyMessage createShipReplyMessage(int resultCode,
int errorCode,
java.lang.String verbose_message,
TransactionID tid,
byte[] sigBytes,
java.lang.String[] secSuites)
public ShipmentRendezvousTable getRendezvousTable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||