PaP
Class PNES
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--PaP.RMIServer
|
+--PaP.PNES
- All Implemented Interfaces:
- java.awt.event.ActionListener, ControlInterface, java.util.EventListener, PNESInterface, java.rmi.Remote, java.io.Serializable
- public class PNES
- extends RMIServer
- implements java.io.Serializable, PNESInterface
Implementation of PaP layer PNES, it does delivery of PaP messages across
nodes and interfaces the PaP support functions the same way an
ApplicationActor would.
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
nodeProfile
Default node profile defined at PNES startup |
protected boolean |
startedPAS
Used when to create new PAS instances |
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 |
PNES()
Empty constructor so that PaPurlLoader can instantiate it. |
Method Summary |
RequestResult |
control(java.lang.String command,
java.lang.String[] pars)
Controls this PNES object, invokes its functionality, BaseFrame input
field can trigger it. |
java.lang.Object |
createPAS(java.lang.String pasName,
java.lang.String hi)
Creates a new PAS in it's domain with the specified name and specified
homeinterface. |
void |
distributeToPASs(java.lang.String command,
java.lang.String[] pars)
Distributes some type of control commands to all the PAS objects of it's own domain. |
boolean |
registered(java.lang.String pasName)
Utility to determine if a PAS is already registered in the domain. |
void |
starter(java.lang.String[] argv)
To leave constructor empty, this method initializes data field values. |
Item |
status()
Status report of all contained information of this PNES object |
RequestResult |
syncRequestFromPAS(RequestPars pRP)
Handles requests from PAS objects. |
RequestResult |
syncRequestFromPNES(RequestPars pRP)
Handles requests from PNES objects |
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 |
nodeProfile
protected java.lang.String nodeProfile
- Default node profile defined at PNES startup
startedPAS
protected boolean startedPAS
- Used when to create new PAS instances
PNES
public PNES()
throws java.lang.Exception
- Empty constructor so that PaPurlLoader can instantiate it.
starter
public void starter(java.lang.String[] argv)
throws java.lang.Exception
- To leave constructor empty, this method initializes data field values.
- Parameters:
argv
- Command line style arguments from startPaP with codebase,
policy, homeinterface and debugserver.
status
public Item status()
- Status report of all contained information of this PNES object
- Overrides:
status
in class RMIServer
- Returns:
- PaP conform Item hierarchy of status information
syncRequestFromPAS
public RequestResult syncRequestFromPAS(RequestPars pRP)
throws java.lang.Exception
- Handles requests from PAS objects.
- Specified by:
syncRequestFromPAS
in interface PNESInterface
- Parameters:
pRP
- The request- Returns:
- Result type and cause of the operation
syncRequestFromPNES
public RequestResult syncRequestFromPNES(RequestPars pRP)
throws java.lang.Exception
- Handles requests from PNES objects
- Specified by:
syncRequestFromPNES
in interface PNESInterface
- Parameters:
pRP
- The request- Returns:
- Result type and cause of the operation
control
public RequestResult control(java.lang.String command,
java.lang.String[] pars)
throws java.lang.Exception
- Controls this PNES object, invokes its functionality, BaseFrame input
field can trigger it.
- Specified by:
control
in interface PNESInterface
- Parameters:
command
- First command line argument, used to denote a command name.pars[]
- Rest of the command line arguments, used as parameters
for the denoted command.- Returns:
- PaP style result indication of the operation.
distributeToPASs
public void distributeToPASs(java.lang.String command,
java.lang.String[] pars)
throws java.lang.Exception
- Distributes some type of control commands to all the PAS objects of it's own domain.
- Parameters:
command
- First command line argument, used to denote a command name.pars[]
- Rest of the command line arguments, used as parameters for
the denoted command.
createPAS
public java.lang.Object createPAS(java.lang.String pasName,
java.lang.String hi)
throws java.lang.Exception
- Creates a new PAS in it's domain with the specified name and specified
homeinterface.
- Parameters:
pasName
- Name for the new PAS.hi
- The PAS' homeinterface. This was added so that it can be set
explicitly and to a different value than the PNES' homeinterface.- Returns:
- The new PAS object.
registered
public boolean registered(java.lang.String pasName)
throws java.lang.Exception
- Utility to determine if a PAS is already registered in the domain.
- Parameters:
pasName
- Name of PAS to be checked for.- Returns:
- True if the PAS is already registered in the domain