|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A container for target systems. Within a TargetSystemContainer,
both the ID as well as the ServerType are key attributes for
the contained TargetSystem objects.
| Method Summary | |
void |
addTargetSystem(TargetSystem targetSystem)
Adds a TargetSystem to this
TargetSystemContainer. |
boolean |
canAddTargetSystem(TargetSystem targetSystem)
Indicates whether the specified TargetSystem can be added to
this TargetSystemContainer. |
TargetSystem |
getTargetSystemByID(java.lang.String id)
Returns the TargetSystem with the specified ID. |
TargetSystem |
getTargetSystemByServerType(ServerType serverType)
Returns the TargetSystem with the specified
ServerType. |
TargetSystem[] |
getTargetSystems()
Returns all target systems in this container. |
| Method Detail |
public TargetSystem[] getTargetSystems()
throws RemoteException
TargetSystem
public TargetSystem getTargetSystemByID(java.lang.String id)
throws RemoteException
TargetSystem with the specified ID.id - the ID of the TargetSystemTargetSystem with the specified ID, if contained
by this TargetSystemContainer; null
otherwiseNullPointerException - if id is null
public TargetSystem getTargetSystemByServerType(ServerType serverType)
throws RemoteException
TargetSystem with the specified
ServerType.serverType - the ServerTypeTargetSystem with the specified
ServerType, if contained in this
TargetSystemContainer; null otherwiseNullPointerException - if serverType is
null
public boolean canAddTargetSystem(TargetSystem targetSystem)
throws RemoteException
TargetSystem can be added to
this TargetSystemContainer. A TargetSystem can
be added to this TargetSystemContainer, if this
TargetSystemContainer contains neither a
TargetSystem with the same ID nor a TargetSystem
with the same ServerType as the specified
TargetSystem.targetSystem - the specified TargetSystemtrue if targetSystem can be added;
false otherwiseNullPointerException - if targetSystem is
null
public void addTargetSystem(TargetSystem targetSystem)
throws RemoteException,
java.io.IOException
TargetSystem to this
TargetSystemContainer. As a precondition, no
TargetSystem with identical ID or identical
ServerType must be contained in this
TargetSystemContainer.
After adding the repository is saved to disk.targetSystem - the TargetSystem to be addedjava.lang.IllegalArgumentException - if this TargetSystemContainer
contains a TargetSystem with the same ID or with the
same ServerTypeNullPointerException - if targetSystem is
nulljava.io.IOException - if saving of the repository fails after the
targetsystem was addedcanAddTargetSystem(TargetSystem)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||