solar.service.pack.client
Class PackClient

java.lang.Object
  |
  +--solar.service.pack.client.PackClient

public class PackClient
extends java.lang.Object

The facade class to interact with Solar system for PACK service.

Version:
$Id: PackClient.java,v 1.14 2003/10/12 00:58:38 glchen Exp $
Author:
Guanling Chen

Field Summary
private  DispatchService _dispatch
           
protected static org.apache.log4j.Logger _log
           
private  PackService _pack
           
private  ServiceManager _servman
           
 
Constructor Summary
PackClient(serp.util.Options opts)
           
PackClient(java.lang.String cfg)
           
PackClient(java.lang.String host, int port)
           
PackClient(java.lang.String host, int port, serp.util.Options opts)
           
 
Method Summary
 void attachPublisher(Id pubId, Publisher publisher)
           
 void attachSubscriber(Id subId, Subscriber subscriber)
           
private  void construct(serp.util.Options opts)
          Common operations needed by constructors.
 void detachPublisher(Id pubId)
           
 void detachSubscriber(Id subId)
           
private  serp.util.Options getDefaultOptions()
           
 MobileHostService getMobileHostService()
           
static void main(java.lang.String[] args)
           
 Guid makeGuid(Id id)
           
 void publish(Id pubId, Event evt)
           
 void subscribe(Id pubId, Id subId, java.lang.Object policy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected static org.apache.log4j.Logger _log

_dispatch

private DispatchService _dispatch

_pack

private PackService _pack

_servman

private ServiceManager _servman
Constructor Detail

PackClient

public PackClient(java.lang.String host,
                  int port)
           throws java.lang.Exception

PackClient

public PackClient(java.lang.String host,
                  int port,
                  serp.util.Options opts)
           throws java.lang.Exception

PackClient

public PackClient(java.lang.String cfg)
           throws java.lang.Exception

PackClient

public PackClient(serp.util.Options opts)
           throws java.lang.Exception
Method Detail

getDefaultOptions

private serp.util.Options getDefaultOptions()

construct

private void construct(serp.util.Options opts)
                throws java.lang.Exception
Common operations needed by constructors.

java.lang.Exception

attachPublisher

public void attachPublisher(Id pubId,
                            Publisher publisher)
                     throws java.lang.Exception
java.lang.Exception

detachPublisher

public void detachPublisher(Id pubId)
                     throws java.lang.Exception
java.lang.Exception

attachSubscriber

public void attachSubscriber(Id subId,
                             Subscriber subscriber)
                      throws java.lang.Exception
java.lang.Exception

detachSubscriber

public void detachSubscriber(Id subId)
                      throws java.lang.Exception
java.lang.Exception

subscribe

public void subscribe(Id pubId,
                      Id subId,
                      java.lang.Object policy)
               throws java.lang.Exception
java.lang.Exception

publish

public void publish(Id pubId,
                    Event evt)
             throws java.lang.Exception
java.lang.Exception

makeGuid

public Guid makeGuid(Id id)

getMobileHostService

public MobileHostService getMobileHostService()
                                       throws java.lang.Exception
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception