|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.admin.hci.InstanceId
public final class InstanceId
This Java class represents a classification for the instances in a deployed SAP CC Core Server system; This classification identifies a system instance by an instance type
associated to a number that identifies the instances of the same type. This number is positive and not null and is defined at installation time.
Examples
dispatcher#1
rater#1
Note
This classification is defined for an SAP CC system. If your system landscape includes two SAP CC systems, two instances may have the same identifier, but belonging to different SAP CC systems. For example dispatcher#1 and rater#1 are present on both SAP CC systems.
InstanceType,
InstanceMap| Field Summary | |
|---|---|
static char |
SEPARATOR
The string representation of the separator used in the syntax of an instance ID: '#' Refer to the marshal() and unmarshal() methods |
static InstanceId |
UPDATER_ID
Instance ID of the updater instance of the SAP CC system |
| Method Summary | |
|---|---|
int |
compareTo(InstanceId other)
|
boolean |
equals(java.lang.Object obj)
|
static InstanceId |
getInstanceId(InstanceType instanceType,
int instanceNum)
Returns an InstanceId object built from the specified instance type and a positive number |
int |
getInstanceNum()
Returns the number of an instance with the same type. |
InstanceType |
getInstanceType()
Returns the instance type of the current instance ID. |
int |
hashCode()
|
static java.lang.String |
marshal(InstanceId instanceId)
Marshals the InstanceId object into a string;
The string result has the following syntax: <INSTANCE_TYPE>SEPARATOR<NUMBER> |
static void |
marshal(InstanceId instanceId,
com.highdeal.hmi.DataBuffer buffer)
Marshals the InstanceId object into the specified data buffer. |
java.lang.String |
toString()
|
static InstanceId |
unmarshal(com.highdeal.hmi.IDataBuffer buffer)
Extracts an InstanceId object from the data buffer specified as argument. |
static InstanceId |
unmarshal(java.lang.String instanceId)
Unmarshals the string representation of an instance ID into an InstanceId object;
The string argument have to respect the following grammar: <INSTANCE_TYPE>SEPARATOR<NUMBER> |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char SEPARATOR
marshal() and unmarshal() methods
public static final InstanceId UPDATER_ID
| Method Detail |
|---|
public InstanceType getInstanceType()
instance typepublic int getInstanceNum()
public int compareTo(InstanceId other)
compareTo in interface java.lang.Comparable<InstanceId>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public static final java.lang.String marshal(InstanceId instanceId)
throws java.lang.IllegalArgumentException
InstanceId object into a string;
The string result has the following syntax: <INSTANCE_TYPE>SEPARATOR<NUMBER>
instanceId - The instanceId to marshal
java.lang.IllegalArgumentException - when the argument is null
public static final InstanceId unmarshal(java.lang.String instanceId)
throws java.lang.IllegalArgumentException,
java.lang.NumberFormatException
InstanceId object;
The string argument have to respect the following grammar: <INSTANCE_TYPE>SEPARATOR<NUMBER>
instanceId - The result instanceId object
java.lang.IllegalArgumentException - When the string argument does not respect the format or is null
java.lang.NumberFormatException - When the second part of the string is not a positive number
public static final void marshal(InstanceId instanceId,
com.highdeal.hmi.DataBuffer buffer)
throws java.lang.IllegalArgumentException,
java.nio.BufferOverflowException
InstanceId object into the specified data buffer.
instanceId - buffer - The result data buffer
java.lang.IllegalArgumentException - When one is null
java.nio.BufferOverflowException - If the buffer has not at least six bytes free
public static final InstanceId unmarshal(com.highdeal.hmi.IDataBuffer buffer)
throws java.lang.IllegalArgumentException,
java.nio.BufferUnderflowException
InstanceId object from the data buffer specified as argument.
buffer - The input data buffer
InstanceId object extracted from the buffer
java.lang.IllegalArgumentException - When the data buffer is null
java.nio.BufferUnderflowException - If the buffer has not at least six bytes remaining
public static final InstanceId getInstanceId(InstanceType instanceType,
int instanceNum)
throws java.lang.IllegalArgumentException
InstanceId object built from the specified instance type and a positive number
instanceType - From the InstanceTypeinstanceNum - A positive number
InstanceId object built
java.lang.IllegalArgumentException - When the instanceType is null or instanceNum is not positive and not null
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||