XMOJO 5 API Docs

com.adventnet.adaptors
Interface Adaptor

All Known Implementing Classes:
AbstractAdaptor

public interface Adaptor

This interface is implemented by all Protocol adaptors (RMI,CORBA,HTTP,HTML,SNMP) This interface essentialy defines the management functions of the adaptor

Since:
Adaptor Version 2.0
Author:
Hyther Nizam, Deepth Dinesan
See Also:
com.adventnet.adaptor.AbstractAdaptor, com.adventnet.adaptor.Protocol

Method Summary
 void enableAuthentication(boolean flag)
          This method can be used to enable or disable Authentication
 void enableAuthorisation(boolean flag)
          This method can be used to enable or disable Authorisation
 ObjectName getAdaptorObjectName()
          This method returns the Adaptors Object Name
 java.lang.String getAdaptorVersion()
          This method returns the Adaptors Version
 java.lang.String getHost()
          This method returns the host on which the Adaptor resides
 int getPort()
          This method returns the port on which the Adaptor is listening
 java.lang.String getProtocol()
          This method Returns the Protocol associated with this Adaptor
 int getState()
          This method returns the state of the Adaptor
 java.lang.String getStateInString()
          This method returns the state of the Adaptor in String format
 boolean isActive()
          This method checks if the Adaptor is in STARTING or STARTED state
 boolean isSecure()
          This method checks if the communication is secure
 void setPort(int port)
          This method sets the port number of on which the adaptor should listen
 void startService()
          This method starts the Adaptor
 void stopService()
          This method stops the Adaptor
 

Method Detail

getHost

public java.lang.String getHost()
This method returns the host on which the Adaptor resides

getPort

public int getPort()
This method returns the port on which the Adaptor is listening

getProtocol

public java.lang.String getProtocol()
This method Returns the Protocol associated with this Adaptor

getState

public int getState()
This method returns the state of the Adaptor

getStateInString

public java.lang.String getStateInString()
This method returns the state of the Adaptor in String format

setPort

public void setPort(int port)
             throws java.lang.IllegalStateException
This method sets the port number of on which the adaptor should listen
Throws:
java.lang.IllegalStateException - if the Adaptor is STARTING or STARTED state

isActive

public boolean isActive()
This method checks if the Adaptor is in STARTING or STARTED state

isSecure

public boolean isSecure()
This method checks if the communication is secure

enableAuthentication

public void enableAuthentication(boolean flag)
                          throws java.lang.UnsupportedOperationException
This method can be used to enable or disable Authentication

enableAuthorisation

public void enableAuthorisation(boolean flag)
                         throws java.lang.UnsupportedOperationException
This method can be used to enable or disable Authorisation

startService

public void startService()
                  throws java.lang.IllegalStateException,
                         java.lang.Exception
This method starts the Adaptor
Throws:
java.lang.IllegalStateException - if the Adaptor is in STARTING or STARTED state

stopService

public void stopService()
                 throws java.lang.IllegalStateException
This method stops the Adaptor
Throws:
java.lang.IllegalStateException - if the Adaptor is in STOPPING or STOPPED state

getAdaptorVersion

public java.lang.String getAdaptorVersion()
This method returns the Adaptors Version

getAdaptorObjectName

public ObjectName getAdaptorObjectName()
This method returns the Adaptors Object Name

XMOJO 5 API Docs

Copyright ©2003 XMOJO.org. All Rights Reserved.