SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

com.solarmetric.manage
Class ManagerClientImpl

java.lang.Object
  |
  +--com.solarmetric.manage.ManagerClientImpl
All Implemented Interfaces:
com.solarmetric.util.Closeable, Configurable, ManagerClient, Runnable

public class ManagerClientImpl
extends Object
implements ManagerClient

Client side of the Manager client/server implementation. A client that successfully instantiates and starts a ManagerClientImpl thread will be able to interact the the Manager singleton as though it is in local to the remote application. The client should never have with this class beyond construction, starting and closing.


Constructor Summary
ManagerClientImpl()
          Construct the Manager client, but let it be configured later.
ManagerClientImpl(Manager managerInstance, InetAddress inetAddr, int port)
          Connect to a remote ManagerServer at the passed InetAddress and port.
ManagerClientImpl(Manager managerInstance, Socket socket)
          Construct the Manager client with an already running socket.
ManagerClientImpl(Manager managerInstance, String host, int port)
          Connect to a remote ManagerServer at the passed host and port.
 
Method Summary
 void close()
          Request that the ManagerClientImpl shut down.
 void endConfiguration()
          Invoked upon completion of bean property configuration for this object.
 void registerInterest(com.solarmetric.manage.WatchableStub watchable)
           
 void registerInterest(com.solarmetric.manage.WatchableStub watchable, com.solarmetric.manage.StatisticStub stat)
           
 void run()
          Primary method of the thread.
 void setConfiguration(Configuration conf)
          Invoked prior to setting bean properties.
 void setHost(String host)
           
 void setLog(org.apache.commons.logging.Log log)
          Set the log for this object to use.
 void setManagerInstance(Manager managerInstance)
           
 void setPort(int port)
           
 void startConfiguration()
          Invoked before bean property configuration is begun on this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagerClientImpl

public ManagerClientImpl()
Construct the Manager client, but let it be configured later.

ManagerClientImpl

public ManagerClientImpl(Manager managerInstance,
                         Socket socket)
Construct the Manager client with an already running socket.

ManagerClientImpl

public ManagerClientImpl(Manager managerInstance,
                         InetAddress inetAddr,
                         int port)
                  throws IOException
Connect to a remote ManagerServer at the passed InetAddress and port.

ManagerClientImpl

public ManagerClientImpl(Manager managerInstance,
                         String host,
                         int port)
                  throws IOException
Connect to a remote ManagerServer at the passed host and port.
Method Detail

setManagerInstance

public void setManagerInstance(Manager managerInstance)
Specified by:
setManagerInstance in interface ManagerClient

setPort

public void setPort(int port)

setHost

public void setHost(String host)

close

public void close()
Request that the ManagerClientImpl shut down.
Specified by:
close in interface com.solarmetric.util.Closeable

setLog

public void setLog(org.apache.commons.logging.Log log)
Set the log for this object to use.

setConfiguration

public void setConfiguration(Configuration conf)
Description copied from interface: Configurable
Invoked prior to setting bean properties.
Specified by:
setConfiguration in interface Configurable

startConfiguration

public void startConfiguration()
Description copied from interface: Configurable
Invoked before bean property configuration is begun on this object.
Specified by:
startConfiguration in interface Configurable

endConfiguration

public void endConfiguration()
Description copied from interface: Configurable
Invoked upon completion of bean property configuration for this object.
Specified by:
endConfiguration in interface Configurable

registerInterest

public void registerInterest(com.solarmetric.manage.WatchableStub watchable,
                             com.solarmetric.manage.StatisticStub stat)
                      throws BrokenConnectionException
Specified by:
registerInterest in interface ManagerClient

registerInterest

public void registerInterest(com.solarmetric.manage.WatchableStub watchable)
                      throws BrokenConnectionException
Specified by:
registerInterest in interface ManagerClient

run

public void run()
Primary method of the thread.
Specified by:
run in interface Runnable

SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.