com.dynalivery.pcre
Class PCREService

java.lang.Object
  |
  +--com.dynalivery.pcre.PCREService
Direct Known Subclasses:
PCREConfigServer, PCRECustomServer, PCREGateway, PCRELoadBalancerServer, PCREServer

public abstract class PCREService
extends java.lang.Object


Constructor Summary
PCREService()
           
PCREService(java.lang.String name, java.lang.String host, java.lang.String server)
          Constructor for the service.
 
Method Summary
abstract  void Connect()
          Connect the client to the service.
abstract  void Disconnect()
          Disconnect the client from the service.
 java.lang.String getServerHost()
          Return the server host IP address.
 java.lang.String getServerName()
          Return the server name.
 org.omg.CORBA.Object getServerObject()
          Return the server object.
 PCREClient getServiceClient()
          Return the client instance for this service.
 java.lang.String getServiceName()
          Return the name of the service.
 boolean isConnected()
          Is the client connected to the service.
 void setConnected(boolean connected)
          Set the connection flag.
 void setServerHost(java.lang.String host)
          Set the service host.
 void setServerName(java.lang.String server)
          Set the server name.
 void setServerObject(org.omg.CORBA.Object object)
          Set the server object
 void setServiceClient(PCREClient client)
          Set the client instance for this service.
 void setServiceName(java.lang.String name)
          Set the service name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCREService

public PCREService()

PCREService

public PCREService(java.lang.String name,
                   java.lang.String host,
                   java.lang.String server)
Constructor for the service.
Parameters:
name - The name of the service.
host - The hostname of the service.
server - The server name.
Method Detail

Connect

public abstract void Connect()
                      throws PCREError
Connect the client to the service.

Disconnect

public abstract void Disconnect()
                         throws PCREError
Disconnect the client from the service.

getServerHost

public java.lang.String getServerHost()
Return the server host IP address.
Returns:
The host of the service.

getServerName

public java.lang.String getServerName()
Return the server name.
Returns:
The server name.

getServerObject

public org.omg.CORBA.Object getServerObject()
Return the server object.
Returns:
The server object.

getServiceClient

public PCREClient getServiceClient()
Return the client instance for this service.
Returns:
The client associated with this instance of the service.

getServiceName

public java.lang.String getServiceName()
Return the name of the service.
Returns:
The name of the service.

isConnected

public boolean isConnected()
Is the client connected to the service.
Returns:
true if the client is connected to the service.

setConnected

public void setConnected(boolean connected)
Set the connection flag.
Parameters:
connected - True if connected, false if not.

setServerHost

public void setServerHost(java.lang.String host)
Set the service host.
Parameters:
host - The host of the service.

setServerName

public void setServerName(java.lang.String server)
Set the server name.
Parameters:
server - The server name.

setServerObject

public void setServerObject(org.omg.CORBA.Object object)
Set the server object
Parameters:
object - The new server object.

setServiceClient

public void setServiceClient(PCREClient client)
Set the client instance for this service.
Parameters:
client - The client to use for this instance.

setServiceName

public void setServiceName(java.lang.String name)
Set the service name.
Parameters:
name - The name of this service.