|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAMETAS.place.AMETASPlace
The place. This is the central object of the AMETAS agent system. The place instance contains vital functions of the infrastructure.
| Field Summary | |
static java.lang.String |
IDENTITIES
Subdirectory which contains identity files. |
static byte |
INITIALIZING
Place initializing state. |
static java.lang.String |
LOGS
Subdirectory containing log files. |
static byte |
READY
Place ready state. |
static byte |
SHUTTING_DOWN
Place shutting down state. |
| Method Summary | |
java.lang.String |
configToString()
Returns a string representation of the local configuration. |
void |
dumpCurrentMessages()
Outputs all messages in the Post Office to the place log. |
AMETAS.place.AMETASAccessMonitor |
getAccessMonitor()
Returns a reference to the AccessMonitor. |
AMETAS.place.AMETASAccountManager |
getAccountManager()
Returns a reference to the AccountManager. |
AMETASPlaceNameService |
getDefaultPNS()
Returns a PlaceNameService accessor object with the settings of this place. |
java.lang.String |
getFilesDir()
Returns the path to the miscellaneous files directory. |
java.lang.String |
getHostName()
Delivers the fully qualified host name. |
AMETASIdentityDataBase |
getIdentityDataBase()
Returns the reference to the identity database. |
java.lang.String |
getIdentityDir()
Returns the path to the identities directory. |
PNSAddress |
getLocation()
Returns the PNS location of this place. |
java.lang.String |
getLogDir()
Returns the path to the place log files. |
java.lang.Object |
getObject(java.lang.String sOID)
Delivers the value of a management object. |
java.lang.String |
getPlaceDir()
Returns the path to the place base directory. |
java.lang.String |
getPlaceName()
Delivers the fully qualified place name. |
AMETASPlaceUserID |
getPlacePUID()
Returns the Place User ID of the place. |
java.lang.String[] |
getPlaceUserPath()
Returns the Place User Path as an array of path components. |
java.lang.String |
getPolicyDir()
Returns the path of the policy directory. |
AMETASPolicyManager |
getPolicyManager()
Returns a reference to the policy manager. |
int |
getPortNumber()
Returns the agent port number. |
long |
getRepLinger()
Returns the type description timeout. |
byte |
getState()
Delivers the current state of the place. |
int |
getUIPort()
Returns the port number for user interfaces. |
void |
killPlaceUser(AMETASIdentityID iidKiller,
AMETASPlaceUserID puidKiller,
AMETASPlaceUserID puidVictim,
long nTimeout)
Puts a Place User on the list of Place Users to be killed. |
static void |
main(java.lang.String[] args)
Main method to start the place. |
java.lang.String |
messagesToString()
Returns a string representation of the messages in the Post Office. |
void |
setObject(java.lang.String sOID,
java.lang.Object objValue)
Sets a management object to some value. |
void |
trace(java.lang.String sTraceMessage)
Outputs debug messages. |
void |
trace(java.lang.String sTraceMessage,
AMETASPlaceUserID puidPU)
Outputs debug messages. |
void |
trace(java.lang.String sTraceMessage,
java.lang.Throwable e)
Outputs debug messages. |
byte |
updateProperty(java.lang.String sName,
java.lang.String sValue)
Updates a place property value. |
void |
writeProperties()
Writes the place configuration to the config file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String IDENTITIES
public static final java.lang.String LOGS
public static final byte READY
public static final byte INITIALIZING
public static final byte SHUTTING_DOWN
| Method Detail |
public static void main(java.lang.String[] args)
java -DDNS_HOSTNAME=HostName AMETAS.place.AMETASPlace ConfigFile
Make sure that your classpath contains the JAR file of the AMETAS distribution. The host name must be explicitely defined because Java does not offer a reliable means of determining the fully qualified host name.
args - Must contain a place configuration file pathname at the first position.
Remaining parameters are ignored.public byte getState()
public void writeProperties()
throws java.io.IOException
java.io.IOException - if there were problems while writing the properties.
public byte updateProperty(java.lang.String sName,
java.lang.String sValue)
throws java.lang.SecurityException
sName - Property name.sValue - Property value.
AMETASErrors.OK if the value was good;
AMETASErrors.BAD_PARAMS if the value was bad;
AMETASErrors.DEFERRED if the value was good
and a restart of the place is required to take effect.
java.lang.SecurityException - if the caller does not have administrative permissions.public java.lang.String getPlaceName()
public java.lang.String getHostName()
public int getPortNumber()
public PNSAddress getLocation()
public AMETASPlaceUserID getPlacePUID()
public int getUIPort()
public AMETAS.place.AMETASAccessMonitor getAccessMonitor()
throws java.lang.SecurityException
java.lang.SecurityException - if the caller does not have administrative
permissions.
public AMETASPolicyManager getPolicyManager()
throws java.lang.SecurityException
java.lang.SecurityException - if the caller does not have administrative
permissions.
public AMETAS.place.AMETASAccountManager getAccountManager()
throws java.lang.SecurityException
java.lang.SecurityException - if the caller does not have administrative
permissions.
public AMETASIdentityDataBase getIdentityDataBase()
throws java.lang.SecurityException
java.lang.SecurityException - if the caller does not have administrative
permissions.public long getRepLinger()
public java.lang.String getPolicyDir()
public java.lang.String getIdentityDir()
public java.lang.String getPlaceDir()
public java.lang.String getLogDir()
public java.lang.String getFilesDir()
public java.lang.String[] getPlaceUserPath()
public void dumpCurrentMessages()
throws java.lang.SecurityException
java.lang.SecurityException - if the caller does not have administrative
permissions.
public java.lang.String messagesToString()
throws java.lang.SecurityException
java.lang.SecurityException - if the caller does not have administrative
permissions.
public java.lang.String configToString()
throws java.lang.SecurityException
java.lang.SecurityException - if the caller does not have administrative
permissions.public AMETASPlaceNameService getDefaultPNS()
public void killPlaceUser(AMETASIdentityID iidKiller,
AMETASPlaceUserID puidKiller,
AMETASPlaceUserID puidVictim,
long nTimeout)
iidKiller - IdentityID of the user who wants to kill the
Place User. Administrators are represented by a null.puidKiller - ID of the Place User which submitted the termination
request.puidVictim - Place User which is requested to be terminated.nTimeout - Period of time until this request becomes outdated.public void trace(java.lang.String sTraceMessage)
sTraceMessage - Message to be printed.
public void trace(java.lang.String sTraceMessage,
AMETASPlaceUserID puidPU)
sTraceMessage - Message to be printed.puidPU - ID of the outputting Place User.
public void trace(java.lang.String sTraceMessage,
java.lang.Throwable e)
sTraceMessage - Message to be output.e - Exception or error the stack trace of which shall be printed.
public java.lang.Object getObject(java.lang.String sOID)
throws java.lang.Exception
sOID - Object ID of the MO.
java.lang.Exception - if some problems occured while reading the MO or
the ID is unknown.
public void setObject(java.lang.String sOID,
java.lang.Object objValue)
throws java.lang.Exception
ametas.place.info.
sOID - Object ID of the MO.objValue - New value of the MO.
java.lang.Exception - if there were problems while setting the value
or when the ID refers to some other MO.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||