PaP
Class RMIServer

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--PaP.RMIServer
All Implemented Interfaces:
java.awt.event.ActionListener, ControlInterface, java.util.EventListener, java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
DebugServer, PAS, PNES

public abstract class RMIServer
extends java.rmi.server.UnicastRemoteObject
implements java.io.Serializable, java.awt.event.ActionListener, ControlInterface

Common RMI and PaP support functions for PaP support entities PNES, PAS, and DebugServer

See Also:
Serialized Form

Field Summary
protected  BaseFrame bf
          BaseFrame for the PaP support entity
protected  java.lang.String defaultCodebase
          Default codebase of the related PaP support classes
protected  GAI defaultHI
          Default Home Interface, address of default Director
protected  java.lang.String DSL
          Debug Server Location, IP address of DebugServer
protected  FaultHandler fh
          Common fault handler for the object
protected  GAI ownGAI
          Address of itself
protected  java.lang.String policy
          Location of the policy for Java RMI access security
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf
 
Fields inherited from class java.rmi.server.RemoteServer
log, logname
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RMIServer()
          Empty constructor so that it can be instantiated after dynamic loading of its class
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.String addCodebase(java.lang.String pCodebase)
          Adds codebase url strings to the JVM's codebase property.
 java.lang.String getGAI()
          Simple utility to convert it's GAI address into one String
 void init(java.lang.String pDC, java.lang.String pType, java.lang.String pName, java.lang.String pDSL)
          To leave constructor empty this method is used to fill data field values
 Item status()
          Status report of this RMIServer in Item hierarchy of information elements
 void term()
          terminate method, only for the symetri with "init()"
 void unbind()
          Unbinds a PaP support entity from the RMI registry and exits it's JVM.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
, clone, exportObject, exportObject, exportObject, exportObject, readObject, reexport, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface PaP.ControlInterface
control
 

Field Detail

bf

protected BaseFrame bf
BaseFrame for the PaP support entity

ownGAI

protected GAI ownGAI
Address of itself

defaultHI

protected GAI defaultHI
Default Home Interface, address of default Director

DSL

protected java.lang.String DSL
Debug Server Location, IP address of DebugServer

defaultCodebase

protected java.lang.String defaultCodebase
Default codebase of the related PaP support classes

policy

protected java.lang.String policy
Location of the policy for Java RMI access security

fh

protected FaultHandler fh
Common fault handler for the object
Constructor Detail

RMIServer

public RMIServer()
          throws java.lang.Exception
Empty constructor so that it can be instantiated after dynamic loading of its class
Method Detail

init

public void init(java.lang.String pDC,
                 java.lang.String pType,
                 java.lang.String pName,
                 java.lang.String pDSL)
          throws java.lang.Exception
To leave constructor empty this method is used to fill data field values
Parameters:
pDC - Default codebase
pType - Type of the entity, PNES, PAS, or DebugServer
pName - Name of the entity
pDSL - Debug Server Location

term

public void term()
terminate method, only for the symetri with "init()"

status

public Item status()
Status report of this RMIServer in Item hierarchy of information elements
Returns:
Item hierarhy of information elements

getGAI

public java.lang.String getGAI()
Simple utility to convert it's GAI address into one String
Returns:
String form of it's GAI address

addCodebase

public java.lang.String addCodebase(java.lang.String pCodebase)
Adds codebase url strings to the JVM's codebase property. It checks to avoid adding same string twice to the codebase. NOTE: RepertoireBase at Director checks Plays too, but there can be multiple Directors over the same PAS
Parameters:
pCodebase - Codebase url string to add to the JVM's codebase property
Returns:
The new codebase property string value

unbind

public void unbind()
            throws java.lang.Exception
Unbinds a PaP support entity from the RMI registry and exits it's JVM. It uses and timer and call back for delayed exit so as to return from method invocation safely.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener