| IBM WebSphere Extended Deployment (XD)TM
Release 6.0 |
Field Summary | |
---|---|
public String | JNDI_NAME
This is the jndi name to find this instance in a partition handler EJB. It is.
|
public int | FAULT_GRACEFUL
The FAULT_GRACEFUL return value reflects that JVM is ok and this fault impacts this partition only. Use.
|
public int | FAULT_PANIC
The FAULT_GRACEFUL return value reflects that JVM is compromized and should be dropped in total. Use.
|
Method Summary | |
---|---|
public
void | addPartition(com.ibm.websphere.wpf.PartitionDefinition)
This dynamically adds a new partition to the application with the specified
name.
|
public
void | removePartition(java.lang.String)
This dynamically removes a partition from the application. Calling this method.
|
public
void | disablePartition(java.lang.String)
This dynamically disables a partition. Calling this method.
|
public
String | getPartitions()
This returns all the current partitions registered with an application.
|
public
String | getApplicationName()
This returns the application name used when installing the partitioned J2EE application.
|
public
void | reportPartitionFault(java.lang.String, int)
This can be called to report a fault with the operation of an active
partition.
|
public
void | reportTransactionComplete(java.lang.String, long)
This should be called to inform the runtime when a transaction/operation
completes on this partition.
|
public
void | reportTransactionFailed(java.lang.String)
This should be called to inform the runtime when a transaction/operation
fails on this partition.
|
public
PartitionDefinition | createPartitionDefinition(java.lang.String)
This returns a partition definition with standard/default class. This doesn't create.
|
public
PartitionDefinition | createPartitionDefinition(java.lang.String, java.lang.String, com.ibm.websphere.wpf.PartitionScope)
This returns a partition definition with standard/default class. This doesn't create.
|
public
PartitionDefinition | createPartitionDefinition(java.lang.String, java.lang.String, com.ibm.websphere.wpf.PartitionScope, java.util.Map)
This returns a partition definition with standard/default class. This doesn't create.
|
public
void | setHttpPartitionManager(com.ibm.websphere.http.wpf.interfaces.HttpPartitionManagerInterface)
This indicates to WPF that this application uses HTTP Partitioning.
|
Field Detail |
public static JNDI_NAME
public static FAULT_GRACEFUL
public static FAULT_PANIC
Method Detail |
public void addPartition( | PartitionDefinition name )
|
name
-
The new partition name.
java.lang.IllegalStateException
public void removePartition( | String name )
|
name
-
The partition to remove.
java.lang.IllegalStateExceptioncom.ibm.websphere.wpf.UnknownPartitionException
public void disablePartition( | String name )
|
When the method is invoked, the partition will either enter a deactivated state or activate immediately on another cluster member capable of hosting the partition. The partition would be deactivated depending on the current policy settings, but by default activated on another cluster member if one is available. If partition is not automatically reactivated, wpfadmin can be used to enable the member once the administrator can review the logs and determine any action that should be done prior to reenabling the partition.
partitionUnloadEvent(...) is not called as the application will call this method and can clean as much as is possible prior to the ivocation.
name
-
The partition to disable.
java.lang.IllegalStateExceptioncom.ibm.websphere.wpf.UnknownPartitionException
public String getPartitions( | ) |
java.lang.IllegalStateException
public String getApplicationName( | ) |
public void reportPartitionFault( | String partitionName , | int severity )
|
partitionName
-
The source partition detecting the fault.
severity
-
This needs to be one of FAULT_* report codes.
java.lang.IllegalStateException
public void reportTransactionComplete( | String partitionName , | long responseTime_ms )
|
partitionName
-
the name of the partition.
responseTime_ms
-
the response time for the transaction.
java.lang.IllegalStateException
public void reportTransactionFailed( | String partitionName )
|
public PartitionDefinition createPartitionDefinition( | String partitionName )
|
java.lang.IllegalArgumentException
public PartitionDefinition createPartitionDefinition( | String partitionName , | String partitionClass ,
| PartitionScope scope )
|
PartitionScope
partitionName
-
The name of the partition.
partitionClass
-
The desired classification for it.
scope
-
Whether this partition is node or cluster scoped.
java.lang.IllegalArgumentException
public PartitionDefinition createPartitionDefinition( | String partitionName , | String partitionClass ,
| PartitionScope scope ,
| Map attrMap )
|
PartitionScope
partitionName
-
The name of the partition.
partitionClass
-
The desired classification for it.
scope
-
Whether this partition is node or cluster scoped.
attrMap
-
of attributes (String key and value) pairs users can use associate for policy management.
java.lang.IllegalArgumentException
public void setHttpPartitionManager( | HttpPartitionManagerInterface manager )
|
manager
-
is the HttpPartitionManager instance.
| IBM WebSphere Extended Deployment (XD)TM
Release 6.0 |