it.imolinfo.jbi4corba.jbi.endpoint
Class Jbi4CorbaEndpoint

java.lang.Object
  extended by it.imolinfo.jbi4corba.jbi.endpoint.Jbi4CorbaEndpoint
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConsumerEndpoint, ProviderEndpoint

public abstract class Jbi4CorbaEndpoint
extends Object
implements Serializable

The Class Jbi4CorbaEndpoint.

See Also:
Serialized Form

Field Summary
static int RUNNING
          The Constant RUNNING.
static int SHUTDOWN
          The Constant SHUTDOWN.
static int STOPPED
          The Constant STOPPED.
 
Constructor Summary
Jbi4CorbaEndpoint()
          Empty constructor.
Jbi4CorbaEndpoint(QName serviceName, String endpointName)
          Instantiates a new jbi4 Corba endpoint.
 
Method Summary
abstract  void activate()
          Activate the endpoint.
abstract  void deactivate()
          Deactivate the endpoint.
 boolean equals(Object obj)
          the endpoints are equals if the servicename, the endpointname and the role are the same.
 javax.wsdl.Definition getDefinition()
          Gets the definition.
 String getEndpointName()
          Gets the endpoint name.
 com.sun.jbi.eManager.provider.EndpointStatus getEndpointStatus()
          Gets the endpoint status.
 File getEndpointWSDL()
          Gets the endpoint WSDL.
 ExchangeProcessor getExchangeProcessor()
          Gets the exchange processor.
abstract  javax.jbi.messaging.MessageExchange.Role getRole()
          Gets the role in MessageExchange.
 Document getServiceDescription()
          Gets the service description.
 javax.jbi.servicedesc.ServiceEndpoint getServiceEndpoint()
          Gets the service endpoint.
 QName getServiceName()
          Gets the service name.
 int getState()
          Gets the state.
 Jbi4CorbaSUManager getSuManager()
          Gets the su manager.
 String getSuName()
          Gets the su name.
 String getUniqueName()
          Utility method to create the unique names with explicit arguments.
static String getUniqueName(String aServiceNamespaceURI, String aServiceName, String aEndpointName, boolean isInbound)
           
 int hashCode()
          hashcode implementation.
abstract  void registerService()
          Register service.
 void setDefinition(javax.wsdl.Definition definition)
          Sets the definition.
 void setEndpointStatus(com.sun.jbi.eManager.provider.EndpointStatus endpointStatus)
          Sets the endpoint status.
 void setEndpointWSDL(File endpointWSDL)
          Sets the endpoint WSDL.
 void setExchangeProcessor(ExchangeProcessor exchangeProcessor)
          Sets the exchange processor.
 void setServiceDescription(Document serviceDescription)
          Sets the service description.
 void setServiceEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
          Sets the service endpoint.
 void setState(int state)
          Sets the state.
 void setSuManager(Jbi4CorbaSUManager suManager)
          Sets the su manager.
 void setSuName(String suName)
          Sets the su name.
 String toString()
           
abstract  void unregisterService()
          Unregister service.
abstract  void validate()
          Validate.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SHUTDOWN

public static final int SHUTDOWN
The Constant SHUTDOWN.

See Also:
Constant Field Values

STOPPED

public static final int STOPPED
The Constant STOPPED.

See Also:
Constant Field Values

RUNNING

public static final int RUNNING
The Constant RUNNING.

See Also:
Constant Field Values
Constructor Detail

Jbi4CorbaEndpoint

public Jbi4CorbaEndpoint()
Empty constructor.


Jbi4CorbaEndpoint

public Jbi4CorbaEndpoint(QName serviceName,
                         String endpointName)
Instantiates a new jbi4 Corba endpoint.

Parameters:
serviceName - the service name
endpointName - the endpoint name
Method Detail

getUniqueName

public String getUniqueName()
Utility method to create the unique names with explicit arguments.

Returns:
the unoque name

getUniqueName

public static String getUniqueName(String aServiceNamespaceURI,
                                   String aServiceName,
                                   String aEndpointName,
                                   boolean isInbound)

getServiceName

public QName getServiceName()
Gets the service name.

Returns:
the service name

getEndpointName

public String getEndpointName()
Gets the endpoint name.

Returns:
the endpoint name

getDefinition

public javax.wsdl.Definition getDefinition()
Gets the definition.

Returns:
the definition

setDefinition

public void setDefinition(javax.wsdl.Definition definition)
Sets the definition.

Parameters:
definition - the new definition

getState

public int getState()
Gets the state.

Returns:
the state

setState

public void setState(int state)
Sets the state.

Parameters:
state - the new state

getEndpointStatus

public com.sun.jbi.eManager.provider.EndpointStatus getEndpointStatus()
Gets the endpoint status.

Returns:
the endpoint status

setEndpointStatus

public void setEndpointStatus(com.sun.jbi.eManager.provider.EndpointStatus endpointStatus)
Sets the endpoint status.

Parameters:
endpointStatus - the new endpoint status

getServiceEndpoint

public javax.jbi.servicedesc.ServiceEndpoint getServiceEndpoint()
Gets the service endpoint.

Returns:
the service endpoint

setServiceEndpoint

public void setServiceEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
Sets the service endpoint.

Parameters:
serviceEndpoint - the new service endpoint

getServiceDescription

public Document getServiceDescription()
Gets the service description.

Returns:
the service description

setServiceDescription

public void setServiceDescription(Document serviceDescription)
Sets the service description.

Parameters:
serviceDescription - the new service description

getSuName

public String getSuName()
Gets the su name.

Returns:
the su name

setSuName

public void setSuName(String suName)
Sets the su name.

Parameters:
suName - the new su name

getSuManager

public Jbi4CorbaSUManager getSuManager()
Gets the su manager.

Returns:
the su manager

setSuManager

public void setSuManager(Jbi4CorbaSUManager suManager)
Sets the su manager.

Parameters:
suManager - the new su manager

getExchangeProcessor

public ExchangeProcessor getExchangeProcessor()
Gets the exchange processor.

Returns:
the exchange processor

setExchangeProcessor

public void setExchangeProcessor(ExchangeProcessor exchangeProcessor)
Sets the exchange processor.

Parameters:
exchangeProcessor - the new exchange processor

getEndpointWSDL

public File getEndpointWSDL()
Gets the endpoint WSDL.

Returns:
the endpoint WSDL

setEndpointWSDL

public void setEndpointWSDL(File endpointWSDL)
Sets the endpoint WSDL.

Parameters:
endpointWSDL - the new endpoint WSDL

equals

public boolean equals(Object obj)
the endpoints are equals if the servicename, the endpointname and the role are the same.

Overrides:
equals in class Object
Parameters:
obj - the object to compare
Returns:
true if the objects are equals
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
hashcode implementation.

Overrides:
hashCode in class Object
Returns:
the object hashcode
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object

registerService

public abstract void registerService()
                              throws Jbi4CorbaException
Register service.

Throws:
Jbi4CorbaException - if something go wrong

unregisterService

public abstract void unregisterService()
                                throws Jbi4CorbaException
Unregister service.

Throws:
Jbi4CorbaException - if something go wrong

validate

public abstract void validate()
                       throws Jbi4CorbaException
Validate.

Throws:
Jbi4CorbaException - if something go wrong

activate

public abstract void activate()
                       throws Jbi4CorbaException
Activate the endpoint.

Throws:
Jbi4CorbaException

deactivate

public abstract void deactivate()
                         throws Jbi4CorbaException
Deactivate the endpoint.

Throws:
Jbi4CorbaException

getRole

public abstract javax.jbi.messaging.MessageExchange.Role getRole()
Gets the role in MessageExchange.

Returns:


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.