public class ClusteringToken.TokenState extends Object
Constructor and Description |
---|
TokenState(ApplicationToken token)
Construct a TokenState.
|
Modifier and Type | Method and Description |
---|---|
String |
computeClusteringStatus()
Computes and returns the clustering status, used to publish the status
of this instance.
|
String |
getDescriptionString()
Returns the information encoded into the value that is stored as the
description.
|
String |
getRegistreeNode()
Gets the registree's node.
|
int |
getRegistreeRegistrationType()
Gets the registree's Registration Type.
|
String |
getStandbyNode()
Gets the standby's node.
|
int |
getStandbyRegistrationType()
Gets the standby's Registration Type.
|
boolean |
isRegistree()
Gets indication as to whether this the server represented
by this ClusteringToken holds the standby position.
|
boolean |
isStandby()
Gets indication as to whether this the server represented
by this ClusteringToken holds the standby position.
|
void |
parseDescription(String desc)
Parse the description of an ApplicationToken
|
void |
setRegistreeNode(String nodeId)
Sets the registree's node.
|
void |
setRegistreeRegistrationType(int regType)
Sets the registree's Registration Type.
|
void |
setStandbyNode(String nodeId)
Sets the standby's node.
|
void |
setStandbyRegistrationType(int regType)
Sets the standby's Registration Type.
|
void |
updateToken(LibrarySession session,
ApplicationToken appToken)
Update the specified ApplicationToken based on information contained
in this instance.
|
public TokenState(ApplicationToken token) throws IfsException
token
- the ApplicationTokenIfsException
- if the operation failspublic void parseDescription(String desc) throws IfsException
desc
- the descriptionIfsException
- if the operation failspublic String getRegistreeNode()
public int getRegistreeRegistrationType()
public String getStandbyNode()
public int getStandbyRegistrationType()
public boolean isRegistree()
public boolean isStandby()
public void setRegistreeNode(String nodeId)
nodeId
- the new registree's node.public void setRegistreeRegistrationType(int regType)
regType
- the new registree's Registration Type.public void setStandbyNode(String nodeId)
nodeId
- the new standby's node.public void setStandbyRegistrationType(int regType)
regType
- the new standby's Registration Type.public void updateToken(LibrarySession session, ApplicationToken appToken) throws IfsException
session
- the session contextappToken
- the ApplicationTokenIfsException
- if the operation failspublic String getDescriptionString()
public String computeClusteringStatus()
Copyright © 2023. All rights reserved.