com.adventnet.agent.tl1
Class ServerCraftInterface

java.lang.Object
  |
  +--com.adventnet.agent.tl1.ServerCraftInterface

class ServerCraftInterface
extends java.lang.Object
implements com.adventnet.tl1.transport.TL1ServerTransportProvider

This class maintains the server session for craft interface.


Constructor Summary
(package private) ServerCraftInterface()
           
 
Method Summary
 void close()
          Closes the transport interface after communication is over.
 void open(java.util.Hashtable hash)
          Initializes the Transport session over which the data is sent/received.
 void start(TL1ServerSession server, TL1API api)
          This interface method should be used for creating instances of client session (TL1Session) with their corresponding TL1TransportProvider framework and it should be updated in TL1ServerSession's addTL1Session(..) method.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerCraftInterface

ServerCraftInterface()
Method Detail

open

public void open(java.util.Hashtable hash)
          throws java.lang.Exception
Description copied from interface: com.adventnet.tl1.transport.TL1ServerTransportProvider
Initializes the Transport session over which the data is sent/received.
Specified by:
open in interface com.adventnet.tl1.transport.TL1ServerTransportProvider
Tags copied from interface: com.adventnet.tl1.transport.TL1ServerTransportProvider
Parameters:
params - Hashtable containing keys and value pairs that are used for creating the session.
Throws:
java.lang.Exception - in case of an error during opening the transport interface.

start

public void start(TL1ServerSession server,
                  TL1API api)
           throws java.lang.Exception
Description copied from interface: com.adventnet.tl1.transport.TL1ServerTransportProvider
This interface method should be used for creating instances of client session (TL1Session) with their corresponding TL1TransportProvider framework and it should be updated in TL1ServerSession's addTL1Session(..) method.
Specified by:
start in interface com.adventnet.tl1.transport.TL1ServerTransportProvider
Tags copied from interface: com.adventnet.tl1.transport.TL1ServerTransportProvider
Parameters:
server - TL1ServerSession instance for updating the client session.
api - TL1API instance for registering the client session.
Throws:
java.lang.Exception - in case of an error during opening the transport interface.
See Also:
TL1ServerSession.addTL1Session(com.adventnet.tl1.TL1Session)

close

public void close()
           throws java.lang.Exception
Description copied from interface: com.adventnet.tl1.transport.TL1ServerTransportProvider
Closes the transport interface after communication is over.
Specified by:
close in interface com.adventnet.tl1.transport.TL1ServerTransportProvider
Tags copied from interface: com.adventnet.tl1.transport.TL1ServerTransportProvider
Throws:
java.lang.Exception - in case of an error during closing the transport interface.