Package jade.imtp.leap
Interface ICP
-
- All Known Implementing Classes:
HTTPPeer,HTTPSPeer,JICPPeer,JICPSPeer,MaskableJICPPeer,NIOHTTPPeer,NIOHTTPSPeer,NIOJICPPeer,NIOJICPSPeer
public interface ICPInterface declaration- Author:
- LEAP
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceICP.ListenerCallback interface to be notified of command arrivals over this ICP.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransportAddressactivate(ICP.Listener l, String peerID, Profile p)Start listening for platform management commandsvoiddeactivate()Stop listening for platform management commandsbyte[]deliverCommand(TransportAddress ta, byte[] payload, boolean requireFreshConnection)Deliver a command to the specified transport addressTransportProtocolgetProtocol()Returns the protocol supported by this ICP
-
-
-
Method Detail
-
activate
TransportAddress activate(ICP.Listener l, String peerID, Profile p) throws ICPException
Start listening for platform management commands- Throws:
ICPException
-
deactivate
void deactivate() throws ICPExceptionStop listening for platform management commands- Throws:
ICPException
-
deliverCommand
byte[] deliverCommand(TransportAddress ta, byte[] payload, boolean requireFreshConnection) throws ICPException
Deliver a command to the specified transport address- Throws:
ICPException
-
getProtocol
TransportProtocol getProtocol()
Returns the protocol supported by this ICP
-
-