|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.kernel.ac.AgentContainerTransfer
public class AgentContainerTransfer
Singleton class (sort of) containing some config for ACReceiver and ACSender.
| Nested Class Summary | |
|---|---|
static class |
AgentContainerTransfer.FileRecord
|
| Field Summary | |
|---|---|
static java.lang.String |
AC_RECEIVE_LOG_FILENAME
File where logs of received ACs are stored |
protected java.io.File |
acDir
The directory where the kernel normally stores ACs |
protected AgentContainerTable |
agentContainerTable
See constructor. |
protected static org.apache.commons.logging.Log |
log
|
protected boolean |
logReceipts
Whether to log receive ACTP receipts |
protected static int |
MAX_AGENT_CONTAINER_LENGTH
The maximum number of bytes in an agent container that this AOS kernel is willing to handle. |
protected static int |
MAX_MESSAGE_LENGTH
Maximum XDR message length that this AOS kernel is willing to handle. |
protected java.security.PrivateKey |
privateKey
The private key used for signing received TOCs to send back |
protected static int |
PROTO_HEADER_LENGTH
Length in bytes of PROTO header V1 |
protected ACReceiver |
receiver
Handles receiption |
protected java.util.ArrayList<AgentContainerTransfer.FileRecord> |
recoveredList
|
protected boolean |
secureComm
Whether to use secure communication |
protected ACSender |
sender
|
protected static int |
SHIP_CONSTANT_LENGTH
The constant component of the 'ship' message length. |
protected static int |
SHIP_REPLY_CONSTANT_LENGTH
|
protected boolean |
shutdown
Set if transfer code is being shutdown as part of kernel shutdown |
protected static int |
XDR_WRITE_BUFFER_SIZE
The size of a write buffer large enough to hold any ACTP protocol message, excluding the (variable component of) an agent container. |
| Constructor Summary | |
|---|---|
AgentContainerTransfer(AgentContainerTable agentContainerTable,
java.io.File acDir,
java.net.InetSocketAddress socketAddress,
boolean secureComm,
java.security.KeyStore keyStore,
java.lang.String keyStorePassphrase,
boolean signedReceipts,
byte[] certificate,
java.security.PrivateKey privateKey,
boolean logReceipts,
KernelImpl kernel)
Creates a new instance of AgentContainerTransfer |
|
| Method Summary | |
|---|---|
AOSapi.WaitACResult |
findInRecoveredList(Cookie c,
TransactionID[] tids)
|
protected static AgentContainerTransfer |
getInstance()
|
ACReceiver |
getReceiver()
|
ACSender |
getSender()
|
void |
handleMUXP(java.net.Socket socket,
java.io.InputStream ins,
int bodyLength)
|
void |
recordReceivedAC(int acid,
TransactionID tid,
TIDRecord tidrec,
Endpoint ep)
|
void |
recover(RoleTable roleTable)
|
void |
shutdown()
|
| 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 AgentContainerTable agentContainerTable
protected final java.io.File acDir
protected final boolean secureComm
protected final java.security.PrivateKey privateKey
protected boolean logReceipts
protected boolean shutdown
protected ACReceiver receiver
protected ACSender sender
protected java.util.ArrayList<AgentContainerTransfer.FileRecord> recoveredList
public static final java.lang.String AC_RECEIVE_LOG_FILENAME
protected static final int XDR_WRITE_BUFFER_SIZE
protected static final int SHIP_CONSTANT_LENGTH
protected static final int SHIP_REPLY_CONSTANT_LENGTH
protected static final int PROTO_HEADER_LENGTH
protected static final int MAX_AGENT_CONTAINER_LENGTH
protected static final int MAX_MESSAGE_LENGTH
| Constructor Detail |
|---|
public AgentContainerTransfer(AgentContainerTable agentContainerTable,
java.io.File acDir,
java.net.InetSocketAddress socketAddress,
boolean secureComm,
java.security.KeyStore keyStore,
java.lang.String keyStorePassphrase,
boolean signedReceipts,
byte[] certificate,
java.security.PrivateKey privateKey,
boolean logReceipts,
KernelImpl kernel)
throws java.io.IOException,
java.net.SocketException,
java.security.NoSuchAlgorithmException,
java.security.KeyStoreException,
java.security.KeyManagementException,
java.security.UnrecoverableKeyException,
NoKnownSecuritySuiteException
AgentContainerTransfer
java.io.IOException
java.net.SocketException
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.KeyManagementException
java.security.UnrecoverableKeyException
NoKnownSecuritySuiteException| Method Detail |
|---|
protected static AgentContainerTransfer getInstance()
public void shutdown()
public ACSender getSender()
public ACReceiver getReceiver()
public void handleMUXP(java.net.Socket socket,
java.io.InputStream ins,
int bodyLength)
throws java.io.IOException
java.io.IOException
public AOSapi.WaitACResult findInRecoveredList(Cookie c,
TransactionID[] tids)
public void recover(RoleTable roleTable)
throws KernelException
KernelException
public void recordReceivedAC(int acid,
TransactionID tid,
TIDRecord tidrec,
Endpoint ep)
throws KernelException
KernelException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||